package com.task.core.domain.info;

import org.springframework.util.ObjectUtils;

import com.task.core.domain.EngineInfo;

import lombok.Data;

/**
 * @author 迪迦.
 * @date 2025/1/21 15:05
 */
@Data
public class ClientEngineInfo {

  private Integer id;
  private String code;
  private String engineName;
  private Boolean status;
  private String enginePackage;
  private String description;

  public ClientEngineInfo(EngineInfo info) {
    if (!ObjectUtils.isEmpty(info)) {
      this.id = info.getId();
      this.code = info.getCode();
      this.engineName = info.getEngineName();
      this.enginePackage = info.getEnginePackage();
      this.status = info.getStatus();
      this.description = info.getDescription();
    }
  }
}
